package game;

public class BadGuy implements Character {

	private int hp;
	private int speed;
	private int str;
	private String name;
	
	public BadGuy(String name){
		this.hp=100;
		this.speed = 50;
		this.str = 2; 
		this.name = name;
	}
	
	public void attaque(Character c) throws DeathException {
		c.takeDammage(str);
	}

	public int getHp() {
		return hp;
	}

	public int getSpeed() {
		return speed;
	}

	public void takeDammage(int dammage) throws DeathException {
		hp -= dammage;
		if (dammage <= 0){
			throw(new DeathException(this,null));
		}
	}

	public String getName() {
		return name;
	}

	public int getStrength() {
		return str;
	}
	
	

}
